package com.itfreer.gis.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.springframework.beans.BeanUtils;
import com.itfreer.form.api.JdbcBaseEntity;

/**
 * 定义工程同步记录实体
 */
@Entity(name = "gis_data_syn")
public class JdbcGisDataSynEntity implements JdbcBaseEntity<GisDataSynEntity>, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6056068948482881680L;

	/**
	 * 主健
	 */
	@Id
	@Column(name = "s_iD", length = 50, nullable = true)
	private String id;

	/**
	 * 同步源
	 */
	@Column(name = "s_source", length = 50, nullable = true)
	private String source;

	/**
	 * 同步时间
	 */
	@Column(name = "d_synDate", nullable = true)
	private java.util.Date synDate;

	/**
	 * 同步人
	 */
	@Column(name = "s_synUserID", length = 50, nullable = true)
	private String synUserID;

	/**
	 * 同步人
	 */
	@Column(name = "s_synUserName", length = 50, nullable = true)
	private String synUserName;

	/**
	 * 状态
	 */
	@Column(name = "s_state", length = 10, nullable = true)
	private String state;

	/**
	 * 报告
	 */
	@Column(name = "s_report", nullable = true)
	private String report;

	/**
	 * 主健
	 */
	public String getId() {
		return id;
	}

	/**
	 * 主健
	 */
	public void setId(String value) {
		this.id = value;
	}

	/**
	 * 同步源
	 */
	public String getSource() {
		return source;
	}

	/**
	 * 同步源
	 */
	public void setSource(String value) {
		this.source = value;
	}

	/**
	 * 同步时间
	 */
	public java.util.Date getSynDate() {
		return synDate;
	}

	/**
	 * 同步时间
	 */
	public void setSynDate(java.util.Date value) {
		this.synDate = value;
	}

	/**
	 * 同步人
	 */
	public String getSynUserID() {
		return synUserID;
	}

	/**
	 * 同步人
	 */
	public void setSynUserID(String value) {
		this.synUserID = value;
	}

	/**
	 * 同步人
	 */
	public String getSynUserName() {
		return synUserName;
	}

	/**
	 * 同步人
	 */
	public void setSynUserName(String value) {
		this.synUserName = value;
	}

	/**
	 * 状态
	 */
	public String getState() {
		return state;
	}

	/**
	 * 状态
	 */
	public void setState(String value) {
		this.state = value;
	}

	/**
	 * 报告
	 */
	public String getReport() {
		return report;
	}

	/**
	 * 报告
	 */
	public void setReport(String value) {
		this.report = value;
	}

	@Override
	public void from(GisDataSynEntity t) {
		BeanUtils.copyProperties(t, this);
	}

	@Override
	public GisDataSynEntity toEntity() {
		GisDataSynEntity toEntity = new GisDataSynEntity();
		BeanUtils.copyProperties(this, toEntity);
		return toEntity;
	}
}